package edu.mju.proxy;

public class TestJdkProxy {

	public static void main(String[] args) {
		//创建代理方法
		JdkDynamicProxy jdkDynamicProxy = new JdkDynamicProxy();
		//声明代理对象Person proxy，调用proxyRelation():建立代理对象和真实对象的代理关系
		Person proxy = (Person)jdkDynamicProxy.proxyRelation(new Man());
		proxy.run();
	}

}
